﻿using System;
using System.Collections.Generic;
using System.Text;

namespace XMK.Framework.Model
{
    /// <summary>
    /// 数据键值对
    /// </summary>
    [Serializable]
    public class KeyValueInfo
    {
        /// <summary>
        /// Key
        /// </summary>
        public string Key { get; set; }
        /// <summary>
        /// Key对应的值
        /// </summary>
        public string Value { get; set; }

        /// <summary>
        /// 对应的子项
        /// </summary>
        public List<KeyValueInfo> List { get; set; }
        /// <summary>
        /// 构造函数
        /// </summary>
        public KeyValueInfo() { }
        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="key">ID</param>
        /// <param name="value">名称</param>
        public KeyValueInfo(string key, string value)
        {
            this.Key = key;
            this.Value = value;
        }
    }
}
